<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateServicioBasico extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('servicio_basico', function (Blueprint $table) {
            $table->increments('id_servicioB');
            $table->string('nombre',50);
            $table->string('calidad',30)->nullable();
            $table->integer('id_lugar');
            $table->integer('id_horario')->nullable();

            //            $table->primary('id_servicioB');
            $table->foreign('id_lugar')->references('id_lugar')->on('lugar');
            $table->foreign('id_horario')->references('id_horario')->on('horario');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('servicio_basico');
    }
}
